#include "widget.h"

#include <QApplication>
#include "heartcurve.h"
#include "timeshower.h"
#include "sync-layer/composer.h"

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    Widget w;
    w.show();

    // 创建图层
    std::shared_ptr<AsyncLayer> heart_curve = std::make_shared<HeartCurve>();
    std::shared_ptr<AsyncLayer> time_shower = std::make_shared<TimeShower>();

    // 添加图层（越后添加的图层，融合时越靠上）
    COMPOSER->insert(heart_curve);
    COMPOSER->insert(time_shower);

    return a.exec();
}
